<?
include('includes/common.php');
include_once ('ws/xml_response_process.php');

OB_START();
?>

        <td id="main_content">
            <div class="category_title">
                Big Apple Tours
            </div>
            <?
            $tour = new ConfigurationBO();
            $tour->Load(0,0,"","`configurationKey` LIKE 'INDEX_TOUR%'");
            $td=0;
            ?>
            <table border="0" cellpadding="0" cellspacing="15" width="100%"><tr>
            <?while ($tour->Next())
            {
            $request = new WSRequest(XML_API, "ITEM_DETAILS", $tour->descr);
            $tour_img= new XMLprocess($request->wsanswer);
//var_dump($request->wsanswer);
//var_dump($tour);
            if ($td++==2) echo "</tr><tr>";
            ?>
                <td class="tour_example">
                    <div class="tour_title"><?=$tour->title?></div>
                    <div class="tour_body">
                        <?
                        echo isset($tour_img->Image)?"<img src=\"$tour_img->Image\" class=\"illustration\">":"";
                        echo $tour->value;
                        ?>
                    </div>
                    
                    <a href="book.php?id=<?=$tour->descr?>" class="details">DETAILS</a>
                </td>
            <?
            }
            ?>
            </tr>
            </table>
        </td>
    </tr>

<?
	$MAIN_BUFFER_CONTENT = ob_get_contents();
	OB_END_CLEAN();
    //$index = "index2";
	require_once(SKIN_PATH.'layout_main.php');
?>
